package com.xnx3.wangmarket.plugin.innerAccount.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 部门机构列表
 * @author 管雷鸣
 */
@Entity
@Table(name = "plugin_inneraccount_department")
public class Department implements java.io.Serializable {

	private Integer id;		//自动编号
	private String name;	//部门名字
	
	public Department() {
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false )
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "name", columnDefinition="char(30) comment '部门的名字'")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", name=" + name + "]";
	}
	
}